package demo1;

public class Derived extends Base{
    int a = 201;  //在子类方法中  父子成员变量相同是优先访问子类成员变量
    public void mod() {

        System.out.println("a=" + this.a + "  b=" + this.b + "  c=" + this.c);

    }
    @Override
    public void methodA() {
        System.out.println("Derived中的methordA方法====");
    }

    public void methodC() {
        super.methodA();
    }
}
